package Java语言.数据结构.字符串;

import java.util.Scanner;

public class Delimiter {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        //String[] t = s.split("[,;]");
        scanner.useDelimiter("[,;]");
        System.out.println(scanner.nextInt());
        System.out.println(scanner.nextInt());

        //System.out.println(Arrays.deepToString(t));
       // System.out.printf("%s%s%x", t[0], t[1], 0x121);
        //DecimalFormat df=new DecimalFormat(",");
    }
}
